#include "arith.h"
#include <stdio.h>
#include <assert.h>

int
main() {
	assert(arith_max(0, -1) == 0);
	assert(arith_min(0, -1) == -1);

	assert(arith_div(-13, 5) == -3);
	assert(arith_mod(-13, 5) == 2);
	assert(arith_div(13, -5) == -3);
	assert(arith_mod(13, -5) == -2);

	assert(arith_ceiling(-13, 5) == -2);
	assert(arith_floor(-13, 5) == -3);
	printf("arith test pass\n");
}
